using System;
using Mt.Site.Core.CustomConfigurations;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.CustomConfigurations.Dto
{
    public class UpdateCustomConfigDto
    {
        public Guid Id { get; set; }

        public DateTime? LastModificationTime { get; set; }

        [Required]
        [StringLength(CustomConfiguration.MaxNameLength)]
        public string Name { get; set; }

        [StringLength(CustomConfiguration.MaxDescriptionLength)]
        public string Description { get; set; }

        [Required]
        //[StringLength(CustomConfiguration.MaxExtensionDataLength)]
        public string ExtensionData { get; set; }


        [StringLength(CustomConfiguration.MaxDataTypeLength)]
        public string DataType { get; set; }

        [Required]
        [StringLength(CustomConfiguration.MaxNameLength)]
        public string Key { get; set; }

        public bool IsActive { get; set; }
    }
}
